package fitness

import (
	"go.uber.org/zap"
	"gorm.io/gorm"
)

type DaoContainer struct {
	UserDao   *UserDao
	DetailDao *DetailDao
}

// CreateFitnessDaoInstance 创建单例
func CreateFitnessDaoInstance(db *gorm.DB, logger *zap.Logger) *DaoContainer {
	userDao := NewUserDao(db, logger)
	detailDao := NewDetailDao(db, logger)

	return &DaoContainer{
		userDao,
		detailDao,
	}
}
